<form id="pagerForm" method="post" action="{:U($module_name.'/'.$action_name."?model=".$model)}">
    <input type="hidden" name="pageNum" value="{$pageNum}" />
    <input type="hidden" name="numPerPage" value="{$numPerPage}" />
    <input type="hidden" name="orderField" value="{$orderField}" />
    <input type="hidden" name="orderDirection" value="{$orderDirection}" />
</form>
<div class="pageHeader">
    <form rel="pagerForm" {if $selproid}onsubmit="return dwzSearch(this, 'dialog');" {else} onsubmit="return navTabSearch(this);" {/if} action="{:U($module_name.'/'.$action_name)}" method="post">
       <input type ='hidden' name='selproid' value="{$selproid}" />
	    <div class="searchBar">
            <ul class="searchContent">
                <li style="width:200px;">
                <label style="width: 50px;">关键字：</label>
                <input type="text" name="keywords" value="{$keywords}" style="width: 120px;"/>
                </li>
                <li style="width: 100px;">
               <select name="sfield" class="combox">
				<option value="all" {if $wherefields=='all'}selected="selected"{/if}>全   部</option>
				<option value="userid" {if $wherefields=='userid'}selected="selected"{/if}>退款用户ID</option>
				<option value="username" {if $wherefields=='username'}selected="selected"{/if}>退款用户名</option>
				<option value="aid" {if $wherefields=='aid'}selected="selected"{/if}>申请用户ID</option>
			</select>
			<input type="hidden" name="sfield_name" value="userid,username,aid" />					
                </li>
				
				<li style="width: 100px;">
					<select name="moneytype" class="combox">
						<option value=''>金额类型</option>
						<option value='CV' {if $where['moneytype'] == 'CV'}selected{/if}>CV</option>
						<option value='BV' {if $where['moneytype'] == 'BV'}selected{/if}>BV</option>
					</select>
				</li>
				<li style="width: 100px;">
					<select name="opttype" class="combox">
						<option value=''>操作类型</option>
						<option value='userrecharge' {if $where['refundtype'] == 'userrecharge'}selected{/if}>用户充值</option>
						<option value='deduct' {if $where['refundtype'] == 'deduct'}selected{/if}>用户扣款</option>
					</select>
				</li>
				
				
                <li style="padding-top:0;"><div class="buttonActive"><div class="buttonContent"><button type="submit">搜索</button></div></div></li>
            </ul>
        </div>
    </form>
</div>
<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<li><a class="edit" href="{:U('Recharge/edit')}" target="dialog" width="600" height="500"><span>充值/扣款</span></a></li>
			<!-- <li><a class="delete" href="demo/common/ajaxDone.html?uid={sid_user}" target="ajaxTodo" title="确定要删除吗?"><span>删除</span></a></li>
			<li><a class="edit" href="demo_page4.html?uid={sid_user}" target="navTab"><span>修改</span></a></li>
			
			<li class="line">line</li>
			<li><a class="icon" href="demo/common/dwz-team.xls" target="dwzExport" targetType="navTab" title="实要导出这些记录吗?"><span>导出EXCEL</span></a></li>
			-->
		</ul>
	</div>
	<table class="table" width="100%" layoutH="113">
		<thead>
			<tr>
				<th orderField="id" {if $orderField=='id'}class="{$orderDirection}"{/if}>ID</th>
				<th orderField="id" {if $orderField=='userid'}class="{$orderDirection}"{/if}>用户</th>
				<th orderField="id" {if $orderField=='money'}class="{$orderDirection}"{/if}>操作金额</th>
				<th orderField="id" {if $orderField=='moneytype'}class="{$orderDirection}"{/if}>金额类型</th>
				<th orderField="id" {if $orderField=='money'}class="{$orderDirection}"{/if}>操作类型</th>		
				<th>充值说明</th>	
				<th orderField="aid" {if $orderField=='id'}class="{$orderDirection}"{/if}>操作用户</th>	
				<th orderField="ctime" {if $orderField=='id'}class="{$orderDirection}"{/if}>操作时间</th>	
				<th >附件</th>				
						
				
			</tr>
		</thead>
		<tbody>
			<volist name="list" id="vo">
			<tr target="sid_user" rel="9">
				<td>{$vo.id}</td>
				<td><a href='{:U('User/detail',array('id'=>$vo['userid']))}' rel="User_detail_{$vo.userid}" height="500" width="580" target="dialog" title="查看">{$vo.userid}({$vo.username})</a></td>
				<td>{$vo['money']/100}</td>
				<td>{$vo.moneytype}</td>	
				<td>{if $vo['refundtype'] == 'deduct'}用户扣款{else}用户充值{/if}</td>
				<td>{$vo.remark}</td>			
				<td>{$vo.aid}</td>	
				<td>{if $vo['ctime']}{$vo.ctime|date='Y-m-d H:i:s',###}{/if}</td>					
				<td>{if $vo['file']}<a href='{$vo.file}' target='_blank'>附件</a>{/if}</td>
			</tr>
			</volist>
		</tbody>
	</table>
	<include file="Index:pages" />
</div>
